// const express = require('express')
// const app = express()
// const index = require("./router/index")
// const reviews = require("./router/reviews")
// const books = require("./router/books")

// app.use('/', index);
// app.use('/', books);
// app.use('/', reviews);


// app.listen(3000, function () {
//     console.log("success")
// })


  
const express = require('express');
const app = express();
const configRoutes = require('./router');

app.use(express.json());

configRoutes(app);

app.listen(3000, () => {
  console.log("We've now got a server!");
  console.log('Your routes will be running on http://localhost:3000');
});